package com.nothing.emp.service.impl;

import com.nothing.emp.dao.DeptDao;
import com.nothing.emp.service.DeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
    @Resource
    DeptDao deptDao;

    @Override
    public List queryAll() {
        return deptDao.queryAllByHql("from DeptVo");
    }
}
